package org.cheniy.domain.strategy.service.rule.chain;

import org.cheniy.domain.strategy.service.rule.chain.factory.DefaultChainFactory;

/**
 * @author cheniy
 * @description 责任链的抽象类
 * @create 2025/3/7 22:20
 */
public abstract class AbstractLogicChain implements ILogicChain {

    private ILogicChain next;

    @Override
    public ILogicChain next() {
        return this.next;
    }

    @Override
    public ILogicChain appendNext(ILogicChain next) {
        this.next=next;
        return this.next;
    }

    public abstract DefaultChainFactory.StrategyAwardVO logic(String userId, Long strategyId);

    public abstract String ruleModel();

}
